package sis.utiltest;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-08-03 12:34
 * @notify
 * @version 1.0
 */

import junit.framework.TestCase;
import sis.util.ListUtil;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ListUtilsTest extends TestCase {
    public void testPad() {
        final int count = 5;
        List<Date> list = new ArrayList<Date>();
        final Date element = new Date();
        ListUtil.pad(list, element, count);
        assertEquals(count, list.size());
        for (int i = 0; i < count; i++) {
            assertEquals("unexpected element at " + i, element, list.get(i));
        }
    }
}
